
package pe.edu.pucp.views;
import java.util.logging.Level;
import java.util.logging.Logger;

public class MyThreadU extends Thread{
    
    public InternalFrameUsuario theWindow;
    public boolean life=false;
 
    public MyThreadU(InternalFrameUsuario theWindow){
    this.theWindow=theWindow;
    }
    
    public void kill(){
        life=false;
    }
    public void run(){
        life=true;
        //PanelUsuario p = pe.edu.pucp.main.Main.principal.user.getPanelUsuario();
        while(true){
            try {
                //p.Actualizar();
                this.sleep(200);
            } catch (InterruptedException ex) {
                Logger.getLogger(Mythread.class.getName()).log(Level.SEVERE, null, ex);
            }
           
        }
    }    
}
